#ifndef CAR_POWER_H
#define CAR_POWER_H

#include "car_power_struct_csv.hpp"

class car_power
{
  public:
	inline virtual ~car_power() { }
	
  private:
};



// implementation for csv files

class car_power_csv: public car_power
{
  public:
	inline car_power_csv(char* filename): file(filename)
	{ }
	
	inline car_power_csv(std::string filename): file(filename)
	{ }

	car_power_csv();

	static bool exist(int _id);

	static float power(int _id);

	static void find_range(float _power, int _power_range[]);

  private:

  protected:

	static car_power_struct_csv const find(int _id);

  private:
	std::string file;
};

#endif
